<h2>INGRESOS - Rendiciones de Otras Cajas</h2>
<P align="right"> <?php echo anchor('otras_rendiciones/','Volver',array('class'=>'back')); ?></P>
<small style="color:red;">
<?php foreach ($cajas as $caja){
echo validation_errors(); }?>
</small>
<fieldset>
<?php   echo form_open('otras_rendiciones/registrar');     
        $this->table->set_empty("&nbsp;");
        $this->table->set_heading('Caja Nro.','Cajero','Monto Registrado','Monto Recibido');
	$total=0;
	foreach ($cajas as $caja){
                $id=$caja->Caj_Id;
                $total=$total+$monto[$id];
		$this->table->add_row(
                              $caja->Caj_Id,
                              $caja->Usr_ApeNom,
                              "$ $caja->Caj_MontoCierre",
                              "$ $monto[$id]"
			);
	?>
        <input type="hidden" name="<?php echo "monto_$id"; ?>" value="<?php echo set_value("0",$monto[$id]); ?>"/>
               
        <?php }
        
        $this->table->add_row('','','<div style="text-align:right"><b>TOTAL: &nbsp; </b></div>',
                              "<div><b>$ $total</b></div>"
                ); 
	$table = $this->table->generate();
        
        echo $table;


?>

<input type="hidden" name="total" value="<?php echo set_value("0",$total); ?>"/>
<div style="text-align:right">    
    <?php echo form_submit('action', 'Confirmar'); ?>

</div>
<?php form_close(); ?>  
</fieldset>
	